/* 仓库 */
import httpRequest from '@/utils/httpRequest'
// 新增修改仓库
export function editGroup (data) {
  return httpRequest({
    url: '/weight/warehouse/save',
    method: 'post',
    data: data
  })
}

// 获取仓库列表
export function getGroupList (params) {
  return httpRequest({
    url: '/weight/warehouse/list',
    method: 'get',
    params: params
  })
}
// 修改仓库状态
export function modifyState (params) {
  return httpRequest({
    url: '/weight/warehouse/modify-state',
    method: 'post',
    data: params,
    headers: {'Content-Type': 'application/json; charset=utf-8'}
  })
}
// 获取仓库树
export function getTreeData (data) {
  return httpRequest({
    url: '/weight/warehouse/treeData',
    method: 'get',
    params: data
  })
}
